<?php if (!empty($items)) { ?>
    <div class="list_items_all">
	<?php foreach ($items as $one_item) { ?>
	    <div class="one_item">
		<div class="parent_one_item_data">
		    <div class="title">
			<?php
			$title = $one_item->title;
			$len = mb_strlen($title, 'UTF-8');
			$xxx = '';
			$limit = 33;
			if ($len >= $limit) {
			    $xxx = ' ...';
			    $title = mb_substr($title, 0, $limit, 'utf-8') . $xxx;
			}
			echo CHtml::link($title, $this->createUrl('/items/index', array('item_id' => $one_item->id, 'item_title' => $one_item->title)), array('title' => $one_item->title, 'class' => 'one_title_item_in_lists_items'));
			
			?>
		    </div>
		    <div class="img"><?= Helper::get_img_category_temp() ?></div>
		    <div class="bottom_price_buy">
			<div class="price"><?= $one_item->price ?> гнр.</div>
			<div class="buy"><?= CHtml::link('Купить', $this->createUrl('ddd'), array('class' => 'buy_button')) ?></div>
			<div class="clear"></div>
		    </div>
		    <div class="clear"></div>
		</div>
		<div class="clear"></div>
	    </div>
	<?php } ?>
        <div class="clear"></div>
    </div>
<?php } ?>